#!/usr/bin/env bash

whoami=`whoami`

host=`hostname`
#cd /home/$whoami/.tmp/
#git clone  https://gitee.com/Alexrander/shells.git
#cd shells


if [[ $host =~ 'home' ]]
then
    res=`uptime | awk '{print $8,$9,$10,$11,$12}'`
    #`````````````` 上传接口```````````````
    req="curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
    \"content\":\"$res\"
    }' 'http://www.luohao.work/dyna/msg'"
    eval $req
fi









